class POLIEntity {
  bool _success;
  String _navigateURL;
  int _errorCode;
  Null _errorMessage;
  String _transactionRefNo;

  POLIEntity(
      {bool success,
        String navigateURL,
        int errorCode,
        Null errorMessage,
        String transactionRefNo}) {
    this._success = success;
    this._navigateURL = navigateURL;
    this._errorCode = errorCode;
    this._errorMessage = errorMessage;
    this._transactionRefNo = transactionRefNo;
  }

  bool get success => _success;
  set success(bool success) => _success = success;
  String get navigateURL => _navigateURL;
  set navigateURL(String navigateURL) => _navigateURL = navigateURL;
  int get errorCode => _errorCode;
  set errorCode(int errorCode) => _errorCode = errorCode;
  Null get errorMessage => _errorMessage;
  set errorMessage(Null errorMessage) => _errorMessage = errorMessage;
  String get transactionRefNo => _transactionRefNo;
  set transactionRefNo(String transactionRefNo) =>
      _transactionRefNo = transactionRefNo;

  POLIEntity.fromJson(Map<String, dynamic> json) {
    _success = json['Success'];
    _navigateURL = json['NavigateURL'];
    _errorCode = json['ErrorCode'];
    _errorMessage = json['ErrorMessage'];
    _transactionRefNo = json['TransactionRefNo'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['Success'] = this._success;
    data['NavigateURL'] = this._navigateURL;
    data['ErrorCode'] = this._errorCode;
    data['ErrorMessage'] = this._errorMessage;
    data['TransactionRefNo'] = this._transactionRefNo;
    return data;
  }
}
